﻿<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.js"
    type="text/javascript"></script>

<script type="text/javascript">
    $(document).ready(function () {
        $("#form1").validate({
            rules: {
                CName: "required",// simple rule, converted to {required:true} 
                CSurname: "required",// simple rule, converted to {required:true} 
                Cphone: "required",// simple rule, converted to {required:true} 
                //Ccountry: "required",// simple rule, converted to {required:true} 
                //Ccity: "required",// simple rule, converted to {required:true} 
                Cmessage: "required",// simple rule, converted to {required:true} 
                Cemail: {// compound rule 
                    required: true,
                    email: true
                },
                Cmessage: {
                    required: true
                }
            },
            messages: {
                comment: "Please enter a message."
            }
        });
    });
</script>

<div class="Contact ortala">
    <h1>
        @ViewBag.ContactPageMotto</h1>

    @if (this.Request.Cookies.AllKeys.Contains("_culture"))
    {
        if (this.Request.Cookies["_culture"].Value == "tr-TR")
        {
        <p>@ViewBag.MottoContactTR</p>    
        }
        else
        {
        <p>@ViewBag.MottoContact</p>
        }
    }
    else
    {
        if (UICulture == "tr-TR")
        {
        <p>@ViewBag.MottoContactTR</p>    
        }
        else
        {
        <p>@ViewBag.MottoContact</p>
        }
    }
</div>
<div class="Contact_Yuz">
    <div class="iletisim ortala">
        <div class="Form">
            @using (Html.BeginForm("Contact", "Home", FormMethod.Post, new { id = "form1" }))
            {
                
                @*<h1>
                    @ViewBag.ContactForm</h1>*@
                <ul>
                    <li><span>@ViewBag.CName</span>@Html.TextBox("CName","")
                    </li>
                    <li><span>@ViewBag.CSurname</span>@Html.TextBox("CSurname","")
                    </li>
                    <li><span>@ViewBag.Cemail</span>@Html.TextBox("Cemail","")
                    </li>
                    <li><span>@ViewBag.Cphone</span>@Html.TextBox("Cphone","")
                    </li>
                   @* <li><span>@ViewBag.Ccountry</span>@Html.TextBox("Ccountry","")
                    </li>
                    <li><span>@ViewBag.Ccity</span>@Html.TextBox("Ccity","")
                    </li>*@
                    <li class="txtarea"><span>@ViewBag.Cmessage</span>@Html.TextArea("Cmessage","",new {rows="6", cols="30"})
                    </li>
                    <li class="Gonder">
                        @*<asp:Button ID="Button1" runat="server" Text="Send" />*@
                        <input type="submit" value="Send" />
                    </li>
                </ul>
            }
        </div>
    </div>
<iframe width="100%" height="320" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=%C3%96rnek+mahallesi+Erc%C3%BCment+Batanay+Cd.+No:14+A2+Blok+251+Ata%C5%9Fehir+Istanbul&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=39.371738,86.572266&amp;ie=UTF8&amp;hq=&amp;hnear=%C3%96rnek+Mh.,+Erc%C3%BCment+Batanay+Sk+No:251,+Ata%C5%9Fehir,+Turkey&amp;t=m&amp;z=14&amp;ll=40.995141,29.085911&amp;output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=%C3%96rnek+mahallesi+Erc%C3%BCment+Batanay+Cd.+No:14+A2+Blok+251+Ata%C5%9Fehir+Istanbul&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=39.371738,86.572266&amp;ie=UTF8&amp;hq=&amp;hnear=%C3%96rnek+Mh.,+Erc%C3%BCment+Batanay+Sk+No:251,+Ata%C5%9Fehir,+Turkey&amp;t=m&amp;z=14&amp;ll=40.995141,29.085911" style="color:#0000FF;text-align:left">  </a></small>
 </div>
